package com.csun.dsms.service.impl;

import com.csun.dsms.comment.core.support.BaseService;
import com.csun.dsms.mapper.DsmsArticleResourceMapper;
import com.csun.dsms.mapper.DsmsFileMapper;
import com.csun.dsms.model.domain.DsmsArticleResource;
import com.csun.dsms.service.DsmsArticleResourceService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Slf4j
@Service
@Transactional
public class DsmsArticleResourceServiceImpl extends BaseService<DsmsArticleResource> implements DsmsArticleResourceService {

    @Resource
    private DsmsArticleResourceMapper articleResourceMapper;

    public void deleteByArticleId(Long articleId){
        articleResourceMapper.deleteByArticleId(articleId);
    }


}
